<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp"%>
<bsl:layout-render name="/WEB-INF/jsp/common/layout.jsp">
<bsl:layout-component name="html-head">
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-41141994-1', 'windywarm.com');
  ga('send', 'pageview');

</script>
</bsl:layout-component>
<bsl:layout-component name="title">
Gas Cans - ${curDivision.divNameEn}
</bsl:layout-component>
<bsl:layout-component name="content" >
<c:set var="contextPath" value="<%=request.getContextPath()%>"></c:set>
<c:set value="gas-cans" var="urlPrefix"></c:set>		
<div class="potal_title_div">
<div style="float:left;font: 12px/38px Verdana,microsoft yahei,Arial;padding-left:32px;color:#505050;">
	<a href="${contextPath}/${urlPrefix}/viewHome">Home</a> &gt; Enquiris
</div>
	
</div>

<div id="newsquery">
<ul class="newsquery">	
<c:forEach var="enquiry" items="${enquiries}" varStatus="vs" >
 
 <c:choose>
 	<c:when test="${vs.count%2 == 0 }">
 		<c:set value="background-color:#ffffff;" var="bgc"></c:set>
 	</c:when>
 	<c:otherwise>
 		<c:set value="background-color:#f5f5f5;" var="bgc"></c:set>
 	</c:otherwise>
 </c:choose>
 <c:choose>
 	<c:when test="${enquiry.type == 1}">
 		<c:set value="bolder" var="fontWeight"></c:set>
 	</c:when>
 	<c:otherwise>
 		<c:set value="normal" var="fontWeight"></c:set>
 	</c:otherwise>
 </c:choose>
 
 	<li class="title">
 	<div class="title" ">
	 	<a target="_self" href="${contextPath}/${urlPrefix}/viewEnquiryItem?enquiry.id=${enquiry.id}" style="font-weight:${fontWeight}">
	      ${enquiry.preName} &nbsp; ${enquiry.customerName}
	    </a>
    </div>
 	<div class="time">
 		${enquiry.email } &nbsp;|&nbsp;
 		<jsp:include page="../common/timeFormatCommon.jsp">
		<jsp:param value="${enquiry.createTime.time}" name="time"/>
		<jsp:param value="${enquiry.createTime.year}" name="year"/>
		<jsp:param value="${enquiry.createTime.month}" name="month"/>
		<jsp:param value="${enquiry.createTime.day}" name="day"/>
		<jsp:param value="${enquiry.createTime.hours}" name="hours"/>
		<jsp:param value="${enquiry.createTime.minutes}" name="minutes"/>
		<jsp:param value="${enquiry.createTime.date}" name="date"/>
	</jsp:include>
 	</div>
 	
 	
 	</li>
               
</c:forEach>
</ul>
	<div>
			<jsp:include page="../common/pageNum.jsp">
					<jsp:param value="${contextPath}/${urlPrefix}/viewEnquiryList?" name="actionName"/>
					<jsp:param value="${page}" name="page"/>
		        </jsp:include>
	</div>	
</div>

</bsl:layout-component>

<bsl:layout-component name="side_info">

	<jsp:include page="prodCateInfo.jsp">
		<jsp:param value="${productDiv}" name="productDiv"/>
 		<jsp:param value="${curCategory}" name="curCategory"/>
   	</jsp:include>
	
		<jsp:include page="contactInfo.jsp">
		<jsp:param value="null" name="null"/>
   	</jsp:include>
	
</bsl:layout-component>


<bsl:layout-component name="footer_info">
	<a>abc</a>
</bsl:layout-component>
</bsl:layout-render>